import { SignUtil } from '@/util/signin';
import { RequestUtil } from '@/util/ele_server_req';

export const checkNeedToSignin = (router) => {
	RequestUtil.do_get_async(
		'/elevator/apartment/list',
		{ name: '@skdjfsdfweis#453949w34_eogf34f' },
		response => {
			if (response.data.code === 200) {
				
			} else {
				router.push({ name: 'quit', replace: true });
			}
		},
		error => {
			router.push({ name: 'quit', replace: true });
		}
	);
};
